<?php

namespace frontend\controllers;

use frontend\models\ActiveGoodForm;
use yii\web\Response;

class ActiveGoodController extends \yii\web\Controller
{
    public function actionIndex()
    {
        //return $this->render('index');
        $act_good_form = new ActiveGoodForm();

        \Yii::$app->response->format= Response::FORMAT_JSON;
        return $act_good_form->getValidActiveGoodList();

        //return $this->render( 'index',$act_good_form->getValidActiveGoodList() );
    }

}
